package com.coin.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.coin.domain.WorkIssue;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @author 李力
 * @description 针对表【work_issue(工单记录)】的数据库操作Service
 * @createDate 2025-05-24 17:08:03
 */
public interface WorkIssueService extends IService<WorkIssue> {

    /**
     * @Description: 分页条件查询工单
     * @Author: 李 力
     * @Date: 2025/6/6
     * @Param: Page<WorkIssue> page, Integer status, String startTime, String endTime
     * @return: R
     */
    Page<WorkIssue> findByPage(Page<WorkIssue> page, Integer status, String startTime, String endTime);

    /**
     * @Description: 回复某个工单
     * @Author: 李 力
     * @Date: 2025/6/6
     * @Param: id answer
     * @return: R
     */
    boolean answer(Long id, String answer);

    Page<WorkIssue> viewWorkIssue(Page<WorkIssue> page, Long userId);

    /**
     * @Description: 会员添加工单
     * @Author: 李 力
     * @Date: 2025/6/21
     * @Param:
     * @return: R
     */
    boolean addWorkIssue(WorkIssue workIssue);
}
